Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

245
Visualizações
Querybuilder.js - How can I limit the conditions to have "AND" in the root, and "OR" in the subgroups?

I am used to working in C#, and just got handed this project with querybuilder. I have been searching for hours and can't seem to figure out how to achieve this.

What I want is for the root condition to be "AND" - which is default.

But since it is default - when I click "Add group" and then "Add rule" in that group, the "And"-condition is selected by default. But I want the "or" to be selected between rules in all groups.

I added a photo which you can reach with below link.

Does anyone have an idea? It would be highly appreciated.

Limit conditions in querybuilder subgroups

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Ok, I would then do something like this with jQuery:

$('#btn-add-rule').on('click', function() {
    $("#btn-parameter-or").trigger("click");
});

It can be a bit rough if the buttons don't have unique ids or classes, then you have to select by nth-child() selector

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda